//
//  TabBar.swift
//  SwiftUI101
//
//  Created by 姬向阳 on 2020/3/30.
//  Copyright © 2020 SUNNYJ. All rights reserved.
//

import SwiftUI

struct TabBar: View {
    var body: some View {
        TabView{
            Home()
                .tabItem {
                    VStack {
                        Image("IconHome")
                        Text("Home")
                    }
            }
            ContentView()
                .tabItem {
                    VStack {
                        Image("IconCards")
                        Text("Certificates")
                    }
            }
            UpdateList()
                .tabItem {
                    VStack {
                        Image("IconSettings")
                        Text("Updates")
                    }
            }
        }
    }
}

struct TabBar_Previews: PreviewProvider {
    static var previews: some View {
        TabBar()
    }
}
